from django.contrib.auth.models import AbstractUser
from django.db import models

# Create your models here.


# django的认证系统中提供了用户模型类, 但是并没有手机号字段,需要对用户模型模型类进行重写, 并配置
class User(AbstractUser):
    mobile = models.CharField(max_length=30, unique=True, verbose_name="手机号")

    class Meta:
        db_table = "tb_user"
        verbose_name = "手机号"
        verbose_name_plural = verbose_name